package com.suyafei.service;

import com.suyafei.enums.CouponCategoryEnum;
import com.suyafei.request.NewUserCouponRequest;
import com.suyafei.util.JsonData;

import java.util.Map;

/**
 * @program: suyafei-1024-shop
 * @description
 * @author: luffy
 * @create: 2021-03-03 15:16
 */
public interface CouponService {

    /**
     * 分页查询优惠券
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> pageCouponActivity(int page,int size);

    /**
     * 领取优惠券接口
     * @param couponId
     * @param promotion
     * @return
     */
    JsonData addCoupon(long couponId, CouponCategoryEnum promotion);

    /**
     * 拉新服务
     * @param newUserCouponRequest
     * @return
     */
    JsonData addNewUserCoupon(NewUserCouponRequest newUserCouponRequest);
}
